
var authorization = myStorage.getItem('memberidToken');
console.log(authorization);

var addrObj = JSON.parse(GetQueryString('addrObj'));	//商品信息
var addressMsg = JSON.parse(GetQueryString('addressMsg'));

console.log(addrObj.specName);
//获取商品详情
var goodsinfoParam = {
	goodsId:addrObj.goodsId
}
ltNetwork.tokenGet(configUrl.GOODSINFO_URL,goodsinfoParam,authorization,function(res){
	var data = res.data;
	$('#cartTmpl').tmpl(data).appendTo('#cartList');
	
	$('#goodsNum').text(addrObj.goodsNum);
	$('#categoryName').text(addrObj.categoryName);
	$('#specName').text(addrObj.specName);
},function(msg){
	console.log(msg);
});


//	$('#addressTmpl').tmpl(addressMsg).appendTo('.orderAddr');
$('#addrName').text(addressMsg.name);
$('#mobile').text(addressMsg.mobile);
$('#addrCon').text(addressMsg.province+addressMsg.city+addressMsg.region+addressMsg.town+addressMsg.detail);

if(addressMsg.isDefault){
	$('#addrDefault').show();
}else{
	$('#addrDefault').hide();
}
	$('.orderAddr').on('click',function(){
		var href = $(this).attr('href');
		
		$(this).attr('href',href+'?addrObj='+JSON.stringify(addrObj));
	});

